package kr.co.itatech.android.manager;

import android.os.*;

/**
 * @author jang83bk
 * 통신 관리를 위한 매니저
 */
public class HttpManager {
    
    //---------- ENUM VARIABLE -----------
    public enum CONN_TYPE{
        TYPE_HTTP,
        TYPE_UDP
    }

    //---------- final VARIABLE -----------
    /** POST 통신*/
    public static final int HTTP_POST =     0;
    /** GET 방식*/
    public static final int HTTP_GET =      1;
    
    
    
    //---------- private VARIABLE -----------
    private CONN_TYPE connType;
    private Handler commHandler;
    private HttpManager INSTANCE = new HttpManager();
    
    /**
     * Constructure
     */
    public HttpManager getInstance(Handler commHandler){
        this.commHandler = commHandler;
        return INSTANCE;
    }
    
    class CommmonAsyncTask extends AsyncTask<String, Integer, Boolean>{
        @Override
        protected Boolean doInBackground(String... params) {
            //통신 처리
            return null;
        }
    }
}
